<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title></title>
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/css/common.css">
</head>
<body>
	<div class='status'><span>商品类型列表</span><a class='add' href="<?php echo U('addType');?>"><strong>添加商品类型<b></b></strong></a></div>
	<div>
		<table class='table' cellspacing='0px' cellpadding='0px'>
			<tr>
				<th>ID</th>
				<th>商品类型</th>
				<th>操作</th>
			</tr>
			<?php if(is_array($type)): foreach($type as $key=>$v): ?><tr>
				<td><?php echo ($v["id"]); ?></td>
				<td><?php echo ($v["name"]); ?></td>
				<td><a href="<?php echo U('attrList',array('tid'=>$v['id']));?>">查看</a><a href="<?php echo U('updateType',array('tid'=>$v['id']));?>">修改</a><a href="<?php echo U('delType',array('tid'=>$v['id']));?>">删除</a></td>
			</tr><?php endforeach; endif; ?>
			<tr>
				<td colspan='3' class='td_center'><?php echo ($page); ?></td>
			</tr>
		</table>
	</div>

</body>
</html>